package org.zoomdev.zoom.common.caster;

import org.zoomdev.zoom.common.json.JSON;

class JsonObject2String implements ValueCaster {

    @Override
    public Object to(Object src) {
        try {
            return JSON.stringify(src);
        } catch (Exception e) {
            throw new CasterException(e);
        }
    }
}